package movie.mapper;

import java.util.List;

import movie.entity.Film;

public interface FilmMapper {
	int insert(Film film);
	int delete(int  movieId);
	List<Film> findAll();
	/**
	 * 查找正在热映
	 * @return
	 */
	List<Film> findReYing();
	/**
	 * 查找即将上映
	 * @return
	 */
	List<Film> findWillShow();
	/**
	 * 查找经典电影
	 * @return
	 */
	List<Film> findShowed();
	
	int update(Film film);
	int updateWantsee(Film film);
	int updateScore(Film film);
	Film findByMovieId(int movieId);
	List<Film> findByFilmName(String filmName);
	Film findByFilmNameOne(String filmName);
}
